if( SERVER ) then AddCSLuaFile("panel_character_info.lua") return end

local CharInfo = nil

function GM:ShowCharacterInfo()

	if ( !IsValid(CharInfo) ) then
		CharInfo = vgui.CreateFromTable( vgui_Splash )
		CharInfo:SetHeaderText("Current Character")
		CharInfo:SetHoverText("Change your character skills and appearances...")
		
		local f = function() LocalPlayer():Give( "weapon_shotgun" ) end
		local Button = BuyMenu:AddSelectButton( "Shotgun", f )
		Button.m_colBackground = Color(255, 90, 90, 255)

		local function2 = function() LocalPlayer():GiveAmmo( 30, "buckshot" ) end
		local Button2 = BuyMenu:AddSelectButton( "Shotgun Ammo", function2 )
		Button2.m_colBackground = Color(255, 90, 90, 255)
 
		Button2.Think = function( self )
			self:SetDisabled( !LocalPlayer():HasWeapon( "weapon_shotgun" ) )
		end
		
		CharInfo:AddCancelButton()
	end
	
	CharInfo:MakePopup()

end

concommand.Add("charinfo_show",GM.ShowCharacterInfo)